<template>
	<view >
		<view v-for="(item,index) in info" class="help-box" @click="toHelp(item,index)">
			<text>{{item.text}}</text>
			<uni-icons type="arrowright" size="20"></uni-icons>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				info:[
					{
						text:'提现没有到账是什么原因?',
						id:0
					},
					{
						text:'为什么我没有办法充值?',
						id:1
					},
					{
						text:'密码错误怎么办?',
						id:2
					},
					{
						text:'如何设置收货地址?',
						id:3
					},
					{
						text:'怎么绑定银行卡?',
						id:4
					},
					{
						text:'为什么我的页面未找到?',
						id:5
					}
				]
			}
		},
		methods:{
			toHelp(item,index){
				console.log(item)
				console.log(index)
			}
		}
	}
</script>

<style>
	.help-box{
		display: flex;
		flex-direction:row;
		justify-content: space-between;
		align-items: center;
		height: 70rpx;
		box-sizing: border-box;
		padding: 10rpx;
		border-bottom: 1px #eee solid;;
	}
</style>
